<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>疫苗种类信息管理</title>
<meta name="decorator" content="default"/>
<script type="text/javascript">
	$(document).ready(function() {
		
	});
	function down(){
		top.$.jBox.confirm("确认要导出疫苗种类信息吗？","系统提示",function(v,h,f){
			if(v=="ok"){
				$("#searchForm").attr("action","${ctx}/vaccinate/bsVaccine/export");
				$("#searchForm").submit();
			}
			$("#searchForm").attr("action","${ctx}/vaccinate/bsVaccine/");
		},{buttonsFocus:1});
		top.$('.jbox-body .jbox-icon').css('top','55px');
	}
	function page(n,s){
		$("#pageNo").val(n);
		$("#pageSize").val(s);
		$("#searchForm").submit();
       	return false;
       }
</script>
<style type="text/css">
	.minWidth {
		min-width: 177px;
	}	
	#contentTable td ,#contentTable th{
		text-align: center;
		padding:1px 20px;
	}
	#contentTable tbody tr td{
		font-size: 13px;
	}
</style>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/vaccinate/bsVaccine/">疫苗种类信息列表</a></li>
		<shiro:hasPermission name="vaccinate:bsVaccine:edit"><li><a href="${ctx}/vaccinate/bsVaccine/form">疫苗种类信息添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="bsVaccine" action="${ctx}/vaccinate/bsVaccine/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>小类名称：</label>
				<form:input path="name" htmlEscape="false" maxlength="100" class="input-medium"/>
			</li>
			<li><label>是否可用：</label>
				<form:select path="status" class="input-medium">
					<form:option value="" label="全部"/>
					<form:options items="${fns:getDictList('bs_vaccinate_status')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</li>
			<li><label>接种类型: </label>
				<form:select path="intype" class="input-medium">
					<form:option value="" label="全部"/>
					<form:options items="${fns:getDictList('bs_vaccine_intype')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="btns"><input onclick="down()" class="btn btn-primary" type="button" value="导出"/></li> 
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>大类编码</th>
				<th>大类名称</th>
				<th>小类编码</th>
				<th>小类名称</th>
				<th>小类全称</th>
				<th>接种类型</th>
				<!-- <th>排序</th> -->
				<th>英文缩写</th>				
				<th>更新时间</th>				
				<th>是否可用</th>
				<shiro:hasPermission name="vaccinate:bsVaccine:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="bsVaccine">
			<tr>
				
				<th>${bsVaccine.gNum}</th>
				<th>${bsVaccine.gName}</th>
				<th>${bsVaccine.id}</th>
				<td><a href="${ctx}/vaccinate/bsVaccine/form?id=${bsVaccine.id}">${bsVaccine.name}</a></td>
				<th>${bsVaccine.nameAll}</th>
				<th>${fns:getDictLabel(bsVaccine.intype, 'bs_vaccine_intype', '')}</th>
				<%-- <th>${bsVaccine.sort}</th> --%>
				<th>${bsVaccine.pinyin}</th>
				<th><fmt:formatDate value="${bsVaccine.updateDate}" pattern="yyyy-MM-dd"/></th>				
				<th>${fns:getDictLabel(bsVaccine.status, 'bs_vaccinate_status', '')}</th>
				<shiro:hasPermission name="vaccinate:bsVaccine:edit"><td>
    				<a href="${ctx}/vaccinate/bsVaccine/form1?id=${bsVaccine.id}">修改</a>
					<a href="${ctx}/vaccinate/bsVaccine/delete?id=${bsVaccine.id}" onclick="return confirmx('确认要删除该疫苗种类信息吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>

















